package com.gxc.test;

import java.util.concurrent.Callable;

/**
 * @author GongXincheng
 * @since 2019-08-11 12:47
 */
public class MyCallable<Integer> implements Callable<Integer> {

    private Integer num;

    MyCallable(Integer num) {
        this.num = num;
    }

    @Override
    public Integer call() throws Exception {
        System.out.println("Thread -> " + Thread.currentThread().getName());
        return num;
    }
}
